/*
 * @Author: doing
 * @Date: 2023-08-19 16:26:08
 * @LastEditors: git config user.name && git config user.email
 * @LastEditTime: 2023-08-31 20:26:13
 * @FilePath: \background-management-system\src\api\menu.js
 * @Description: 
 * 菜单权限接口
 * Copyright (c) 2023 by 1540265624@qq.com, All Rights Reserved. 
 */
import axios from '~/axios.js'
//获取到所有的菜单权限
export function getMenus(body){
    return axios.post(`/system/menu/search`,body)
}
//更新菜单权限
export function updataMenu(body){
    return axios.put('/system/menu',body)
}
//新增菜单
export function addMenu(body){
    return axios.post('/system/menu',body)
}

//根据id删除菜单
export function deleteMenu(id){
    return axios.delete(`/system/menu/${id}`)
}
